package sessions;

import entities.Food;
import javax.ejb.Local;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * The Food facade.
 * @author momsse
 */
@Stateless
@Local(FoodFacadeLocal.class)
public class FoodFacade extends AbstractFacade<Food> implements FoodFacadeLocal {

    @PersistenceContext(unitName = "WWatchersPU")
    private EntityManager em;

    /**
     * Constructor.
     */
    public FoodFacade() {
        super(Food.class);
    }

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }
}
